package cz.kfad.ofrss.activity;


import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import cz.kfad.ofrss.common.ApplicationContext;

public class OfflineWebViewActivity extends Activity {

	public static final String CONTENT = "CONTENT";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        WebView webview = new WebView(this);
		final String content = getIntent().getStringExtra(CONTENT);
		webview.loadData(content, "text/html", null);
        setContentView(webview);

    }

	@Override
	protected void onResume() {
		super.onResume();
		ApplicationContext appState = ((ApplicationContext) getApplicationContext());
		appState.setContextToAsynTasks(this);
	}
}
